/**
 * Created by Jone on 2016/7/12.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var GroupSchema = new Schema({
    name: String, //显示名称
    key: String, //分组标识
    projectId: { type : Schema.Types.ObjectId, ref : 'Project'}, //项目Id
    createAt:{type: Date, default: Date.now}, //创建时间
    updateAt: {type: Date, default: Date.now} //更新时间
});
exports.Group = mongoose.model('Group', GroupSchema);